package com.yc.demo.d0301Operation;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Enumeration;

@WebServlet(name = "ShowD0301OperationServlet", value = "/ShowD0301OperationServlet")
public class ShowD0301OperationServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        request.setCharacterEncoding("utf-8");
        response.setCharacterEncoding("utf-8");
        response.setContentType("text/html;charset=utf-8");

        Object like = request.getSession().getAttribute("likes");
        Object edu = request.getSession().getAttribute("edu");
        Object text = request.getSession().getAttribute("text");

        PrintWriter out = response.getWriter();
        out.println("爱好:" + like + "<br>");
        out.println("学历:" + edu  + "<br>");
        out.println("经历:" + text );


    }

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    }
}
